package com.example.rouroudate.ui.history.ui

import android.content.Context
import android.os.Bundle
import com.example.rouroudate.R
import com.example.rouroudate.ui.home.ui.CircleDate
import com.example.rouroudate.ui.widget.CommonBottomDialog

class HistoryMenuDialog  constructor(context: Context) : CommonBottomDialog(context) {

    var date: CircleDate? = null
    private var settingDataCallback: (Boolean) -> Unit = {}

    fun setCallBack(callback: (Boolean) -> Unit = {}) {
        settingDataCallback = callback
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.history_menu_dialog_layout)
        setRightViewClick {
            settingDataCallback.invoke(true)
            dismiss()
        }
    }
}